<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>企业网站管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/admin.css">
    <script src="${pageContext.request.contextPath}/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/js/pintuer.js"></script>
    <style>
        form{
            margin-left: 10px;
        }
        .form-group{
            margin-top: 20px
        }
        .form-group input{
            height: 30px;
        }
    </style>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 修改下拉菜单</strong></div>
    <form class="form-x" action="${pageContext.request.contextPath}/updateMinMenu" method="post">
        <div class="form-group">
            <div class="field">
                <div class="label">
                    <%--@declare id="sitename"--%>
                    <label for="sitename">下拉菜单名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="min_name" size="50" value="${minMenu.min_name}" placeholder="请输入新名称" data-validate="required:请输入新名称,length#>=1:新名称不能小于1位" />
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <select name="maxid">
                    <option selected>${minMenu.maxid}</option>
                    <c:forEach items="${requestScope.maxMenuList}" var="b">
                        <option value="${b.max_id}">${b.max_id}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <input type="hidden" name="min_id" value="${minMenu.min_id}"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>
